home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: elroy.jpl.nasa.gov!llyene!news
- From: kdq@emoryi.jpl.nasa.gov (Kevin Quitt)
- Subject: Re: Need Soundx code
- Message-ID: <30e98d17.9565573@llyene.jpl.nasa.gov>
- Sender: news@llyene.jpl.nasa.gov
- Reply-To: kdq@emoryi.jpl.nasa.gov
- Organization: Jet Propulsion Laboratory
- X-Newsreader: Forte Agent .99c/16.141
- References: <4c1nlj$9t8@news-f.iadfw.net>
- Date: Tue, 2 Jan 1996 19:53:29 GMT
-
- On Fri, 29 Dec 1995 21:46:34 GMT, bwilson@airmail.net (Bob Wilson) wrote:
- >I need either 'C' source that I can compile in a 32 bit DLL or a VB
- >OCX that will generate Soundx codes.
-
- From Knuth Vol 3.
-
- The Soundex method was originally developed by Margert Odell and
- Robert Russell and was patented [US 1261167 (1918), 1435663 (1922)].
-
- Knuth's description:
-
- 1. Retain the first letter of the name
-
- 2. Drop from all other positions, the letters: A E H I O U W Y
-
- 3. Assign numbers to letters per:
-
- 1: B F P V
- 2: C G J K Q S X Z
- 3: D T
- 4: L
- 5: M N
- 6: R
-
- 4: Drop all but the first number in repeated number sequences.
-
- 5: The output is the form L### where L is the first letter of the
- word, and ### is the first three digits (adding zeroes as
- necessary).
-
- Kevin: K150
- David: D130
- Quitt: Q300
-
- --
- #include <standard.disclaimer> http://emoryi.jpl.nasa.gov/
- _
- Kevin D Quitt USA 91351-4454 96.37% of all statistics are made up
-